$(function(){ 
  //var winH = $(window).height(); //页面可视区域高度 
  var i = 3; //设置当前页数 
  $("#wrapper").scroll(function () { 
    //var pageH = $(document.body).height(); 
    //var scrollT = $("#wrapper").scrollTop(); //滚动条top  
    //var aa = $("#wrapper").scrollTop() + $(window).height()  >= $(document).height()  ; 
    if(($("#wrapper").scrollTop() % $(window).height())>=(4 * $(window).height() / 5)){ 
      $.getJSON("getperson.php",{page:i},function(json){
        if(json){ 
          var str = ""; 
          $.each(json,function(index,array){ 
		  str="<a href=\"../me/me.php?userid=";
		  	str+=array['UserId'];
		   str+="\"><div class=\"mainIconPane\"><div class=\"u-icon\"><img src=\"../";
						if(array['UserImg']!=null&&array['UserImg']!=""&&array['UserImg']!='undefined')
							str+=array['UserImg'];
						else
							str+="img/default/default.png";	
						str+="\" class=\"u-img\" alt=\" \"></div><div class=\"u-all\"><div class=\"u-info\"><span class=\"userName\">";
						str+=array['UserName'];
						str+="&nbsp;</span><span class=\"tag\">&nbsp;";
							str+=array['UserType'];
							str+="&nbsp;</span><div class=\"u-decri\"><p><span class=\"c-green\">\"";
							if(array['UserDescri']!=null||array['UserDescri']!=""&&array['UserDescri']!='undefined')
								str+=array['UserDescri'];
							else
								str+="";
							str+="\"</span></p></div></div></div></div></a>";

            $("#content").append(str); 
          }); 
          i++; 
        }else{ 
          $(".nodata").show().html("别滚动了，已经到底了。。。"); 
          return false; 
        } 
      }); 
    } 
  }); 
}); 